/*
 * 可通过 $page.state.xxx 访问这里定义的状态
 * 注意：页面级别的状态仅在所属的页面有效
 * 修改状态时，直接赋值即可。如：$page.state.xxx = 'xxx'
 * 请注意：避免在页面处于后台状态时state，页面在后台时对全局state的修改会丢失！
 */

export default {
  name: "home",
  token: "",
  showLogin: false,
  weather: {
    degree: "",
    humidity: "",
    precipitation: "",
    pressure: "",
    update_time: "",
    weather: "",
    weather_code: "",
    weather_short: "",
    wind_direction: "",
    wind_power: "",
  },
  cityList: [
    {
      label: "获取当前定位",
      value: "00",
    },
    {
      label: "南宁",
      value: "01",
    },
    {
      label: "柳州",
      value: "02",
    },
    {
      label: "桂林",
      value: "03",
    },
    {
      label: "梧州",
      value: "04",
    },
    {
      label: "北海",
      value: "05",
    },
    {
      label: "防城港",
      value: "06",
    },
    {
      label: "钦州",
      value: "07",
    },
    {
      label: "贵港",
      value: "08",
    },
    {
      label: "玉林",
      value: "09",
    },
    {
      label: "百色",
      value: "10",
    },
    {
      label: "河池",
      value: "11",
    },
    {
      label: "贺州",
      value: "12",
    },
    {
      label: "来宾",
      value: "13",
    },
    {
      label: "崇左",
      value: "14",
    },
  ],
  headList: [
    {
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/health_qr@2x.png",
      title: "健康码",
      showBadge: true,
      to: "healthCode",
      protocol: "link",
      path: "index",
    },
    {
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/chengchema@2x.png",
      title: "乘车码",
      showBadge: false,
      to: "wxbb58374cdce267a6",
      protocol: "miniProgram",
      path: "pages/qrcode/index?attach=02_szguangxi",
    },
    {
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/customer_service@2x.png",
      title: "智能客服",
      showBadge: false,
      to: "",
      protocol: "",
      path: "",
    },
  ],
  mainEnterenceList: [
    {
      bg: {
        backgroundImage:
          "url('https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/yiqing_bg@2x.png')",
        backgroundRepeat: "no-repeat",
        backgroundSize: "100% 100%",
      },
      name: "疫情服务",
      subTitle: "核酸、接种、医疗",
      to: "",
      protocol: "",
      path: "",
    },
    {
      bg: {
        backgroundImage:
          "url('https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/gaokao_bg@2x.png')",
        backgroundRepeat: "no-repeat",
        backgroundSize: "100% 100%",
      },
      name: "高考查分",
      subTitle: "2021年高考成绩",
      to: "collegeHome",
      protocol: "page",
      path: "",
    },
  ],
  swiperList: [
    {
      title: "2021 “夏日缤纷” 旅游节",
      subTitle: "参与活动，领取奖品",
      to: "",
      protocol: "",
      path: "",
    },
    {
      title: "2021 “夏日缤纷” 旅游节",
      subTitle: "参与活动，领取奖品",
      to: "",
      protocol: "",
      path: "",
    },
    {
      title: "2021 “夏日缤纷” 旅游节",
      subTitle: "参与活动，领取奖品",
      to: "",
      protocol: "",
      path: "",
    },
    {
      title: "2021 “夏日缤纷” 旅游节",
      subTitle: "参与活动，领取奖品",
      to: "",
      protocol: "",
      path: "",
    },
  ],
  lifeList: [
    {
      name: "公积金",
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/gjj_icon2@2x.png",
      to: "",
      protocol: "miniProgram",
      path: "",
    },
    {
      name: "电子社保卡",
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/si_icon2@2x.png",
      protocol: "miniProgram",
      to: "wxb032bc789053daf4",
      path: "pages/bind-depart/bind-depart?is_depart=1&from=i8b77ShgCohU_KpJI44C_Q.=&cityid=450000",
    },
    {
      name: "医保电子凭证",
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/chs_icon2@2x.png",
      to: "wxb032bc789053daf4",
      protocol: "miniProgram",
      path: "pages/cert/bind/bind?from=pS6Veav08a4toZwtLEBOwA.=&cityid=450000",
    },
    {
      name: "电子健康卡",
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/scenic_icon2@2x.png",
      to: "wx2eec5fb00157a603",
      protocol: "miniProgram",
      path: "",
    },
  ],
  commonUseList: [
    {
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/social_guarantee_icon@2x.png",
      title: "生活保障",
      subTitle: "保障救助 丨 保障对象认定",
      // to: "",
      // protocol: "",
      path: "shbz",
    },
    {
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/service_pay_icon@2x.png",
      title: "生活缴费",
      subTitle: "水电煤线上缴费",
      // to: "",
      // protocol: "",
      path: "shfw",
    },
    {
      icon: "https://weapps-prod-1301730524.cos.ap-guangzhou.myqcloud.com/res/8H7jmbp0f/hr_icon@2x.png",
      title: "人才就业",
      subTitle: "帮扶就业技能 丨 技能补贴申请",
      // to: "",
      // protocol: "",
      path: "rcjy",
    },
  ],
};

/* 在这里定义页面变量。
 *  页面变量区别于 state 的是：页面变量不会作响应处理，不可被绑定
 *  在 handler 中使用的例子：import { data } from '../state'
 *
 */
export const data = {};
